package com.sf.ams.entity;

import com.sf.ams.entity.enums.ExecuteStatus;

/**
 * 描述：
 * 
 * <pre>HISTORY
 * ****************************************************************************
 *  ID   DATE           PERSON          REASON
 *  1    2017-09-26      Simba.Hua         Create
 * ****************************************************************************
 * </pre>
 * @author Simba.Hua
 */
public class Environment {
	private String environmentType;
	private Integer environmentIndex;
	private String dataBaseType;
	private String dataBaseConnection;
	private String dataBaseUserName;
	private String dataBasePassword;
	private Integer currentIndex;
	private String lastExecuteTime;
	private ExecuteStatus currentStatus;
	private String executeFailReason;
	private SystemInfo system;
	public Environment(){
		
	}
	public Environment(String environmentType, String dataBaseConnection,
			String dataBasePassword) {
		super();
		this.environmentType = environmentType;
		this.dataBaseConnection = dataBaseConnection;
		this.dataBasePassword = dataBasePassword;
	}
	public String getEnvironmentType() {
		return environmentType;
	}
	public void setEnvironmentType(String environmentType) {
		this.environmentType = environmentType;
	}
	public String getDataBaseType() {
		return dataBaseType;
	}
	public void setDataBaseType(String dataBaseType) {
		this.dataBaseType = dataBaseType;
	}
	public String getDataBaseConnection() {
		return dataBaseConnection;
	}
	public void setDataBaseConnection(String dataBaseConnection) {
		this.dataBaseConnection = dataBaseConnection;
	}
	public String getDataBaseUserName() {
		return dataBaseUserName;
	}
	public void setDataBaseUserName(String dataBaseUserName) {
		this.dataBaseUserName = dataBaseUserName;
	}
	public String getDataBasePassword() {
		return dataBasePassword;
	}
	public void setDataBasePassword(String dataBasePassword) {
		this.dataBasePassword = dataBasePassword;
	}
	public Integer getCurrentIndex() {
		return currentIndex;
	}
	public void setCurrentIndex(Integer currentIndex) {
		this.currentIndex = currentIndex;
	}
	public String getLastExecuteTime() {
		return lastExecuteTime;
	}
	public void setLastExecuteTime(String lastExecuteTime) {
		this.lastExecuteTime = lastExecuteTime;
	}
	
	
	public ExecuteStatus getCurrentStatus() {
		return currentStatus;
	}
	public void setCurrentStatus(ExecuteStatus currentStatus) {
		this.currentStatus = currentStatus;
	}
	public String getExecuteFailReason() {
		return executeFailReason;
	}
	public void setExecuteFailReason(String executeFailReason) {
		this.executeFailReason = executeFailReason;
	}
	public SystemInfo getSystem() {
		return system;
	}
	public void setSystem(SystemInfo system) {
		this.system = system;
	}
	public Integer getEnvironmentIndex() {
		return environmentIndex;
	}
	public void setEnvironmentIndex(Integer environmentIndex) {
		this.environmentIndex = environmentIndex;
	}
	@Override
	public String toString() {
		return "Environment [environmentType=" + environmentType
				+ ", environmentIndex=" + environmentIndex + ", dataBaseType="
				+ dataBaseType + ", dataBaseConnection=" + dataBaseConnection
				+ ", dataBaseUserName=" + dataBaseUserName
				+ ", dataBasePassword=" + dataBasePassword + ", currentIndex="
				+ currentIndex + ", lastExecuteTime=" + lastExecuteTime
				+ ", currentStatus=" + currentStatus + ", executeFailReason="
				+ executeFailReason + ", system=" + system + "]";
	}
	
}
